<?php

namespace app\backend\controller;

use app\BaseController;
use think\facade\Session;

class Common extends BaseController
{
    public function initialize()
    {
        $sess_auth = session('id');
        $sess_name = session('name');
        if (!$sess_auth) {
            jumpTo('/login');
            exit;
        }
        parent::initialize();
    }

}